package ynu.edu.dao;


import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import ynu.edu.common.dao.LogicDAO;
import ynu.edu.entity.User;

public interface UserDao extends LogicDAO<User,Long> {
    @Query("select u from User u where u.username=:username and u.password=:password")
    public User getUserByNameAndPassword(@Param("username")String username,@Param("password")String password);
}
